-- sky_random_bonus
-- create by zhuangsl
-- 道具： 天空物质随机奖励

return {
    apply = function(source, target, classId, value)
        -- 数量随机
        local rand = RandomFactoryM.myRandom(ME.user);
        local range = value[4] - value[3] + 1;
        local count = value[3] + rand % range;
        
        local bonus = {value[1], value[2], count};
        BonusM.doBonus(bonus, "property_sky_rand_bonus");
    end,
};
